package com.online.onlineshop.services;

import com.online.onlineshop.entity.Comment;
import com.online.onlineshop.utils.ReturnData;
import com.online.onlineshop.vo.CommentVo;
import com.online.onlineshop.vo.ProdCommentVO;

import java.util.List;

/**
 * @author zihao.wang1
 * @date 2022/4/25
 */
public interface ForCommentService {

    Integer addComment(Comment comment, Integer uid, String userName);

    Comment selectComment(Integer oid, Integer pid);

    Integer updateComment(Comment comment, Integer uid, String userName);

    ReturnData<List<CommentVo>> selectByComment(Comment comment, int pageNum, int limit, int uid);

    ReturnData<List<ProdCommentVO>> selectCommentByPid(Integer pid);
}
